<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>修改密码</title>
    <link rel="stylesheet" href="/css/commen.css" />
    <link rel="stylesheet" href="/css/personal-center.css" />
    <link href="/css/login.css" rel="stylesheet" type="text/css">
    <style type="text/css">

    </style>
</head>
<body style="">

<div class="login_bg">
    <div style="margin: 0 auto;background-color: #EDF4FD; height: 500px;" id="box">
        <div class="">
            <div style="text-align: center;">
                <!--<div style="cursor: pointer" id="homePage" class="pull_left">-->
                <img src="/img/logo.png" style="width: 120px">
                <!--</div>-->

            </div>
        </div>
        <!--<div class="denglu-nav">-->
        <!--<a class="zhuce" href="/html/zhuce.html">注册</a>-->
        <!--<a class="denglu" href="/html/login.html">登录</a>-->
        <!--</div>-->
        <p style="margin-top: 18px">请输入要重置密码的邮箱帐号</p>
        <div class="denglu-user" style="margin-top: 18px">

            <input type="text"  placeholder="邮箱账户" id="email"/>
        </div>

        <!--<div class="denglu-password">-->
            <!--<input type="password" placeholder="再次输入" id="l_password"/>-->
        <!--</div>-->

        <div class="auto">
            <!--<div class="auto-login">-->
            <!--<input type="checkbox"/>&nbsp;&nbsp;自动登录-->
            <!--</div>-->
            <!--<div class="forgot-password">-->
            <!--<a href="#" target="_blank">忘记密码?</a>-->
            <!--</div>-->
        </div>
        <a href="#" class="denglu-btn" id="nextStep">下一步</a>

    </div>
</div>

<script src="/lib/jquery-1.9.1.min.js"></script>
<script src="/lib/layui/layui.js"></script>
<script src="/lib/expand.js"></script>
<script src="/lib/common.js"></script>
<script>
    $('#nextStep').click(function () {
         var re = /^(\w-*\.*)+@(\w-?)+(\.\w{2,})+$/
        if(re.test(getDom('#email').value))
        {
            $.ajax({
                type: 'POST',
                url: MAIN_URL + "/pc/center/member/sendMail",
                dataType: 'json',
                data:{
                    mailAddress:getDom('#email').value
                },
                success: function (res) {

                        //console.log(res.message);
                        layui.use(['layer', 'form'], function () {
                            layer.msg(res.message);
                        });

                }
            });
        }else
        {
            layui.use(['layer', 'form'], function () {
                layer.msg("邮箱格式不正确");
            });
        }
    });
</script>
</body>
</html>
